<?php
$url = $this->page_url;
$parameterGet = $this->DbshopCommonFun()->dbshopRequesthelper();

if ($parameterGet != ""){
  $parameterGet = "?".$parameterGet;
}
//为了获取类似#这样的html定位符
$parameterGet .= ((isset($this->more) and !empty($this->more)) ? $this->more : '');
?>
<?php if ($this->pageCount): ?>
<div class="pagination pull-right" style=" margin:0;">
<ul>
      <?php if (isset($this->previous)): ?>
     <li><a href="<?php echo $url.'/1'; ?>">&lt;&lt; &nbsp;&nbsp;</a></li>
     <li><a href="<?php echo $url.'/'.$this->previous.$parameterGet; ?>"><?php echo $this->translate('上一页'); ?></a></li>      
      <?php else: ?>
      <li class="disabled"><a href="#">&lt;&lt; &nbsp;&nbsp;</a></li>
      <li class="disabled"><a href="#"><?php echo $this->translate('上一页'); ?></a></li>      
      <?php endif; ?>
      <?php foreach ($this->pagesInRange as $page): ?>
      <?php if ($page != $this->current): ?>
        <li><a class="nopage" href="<?php echo $url.'/'.$page.$parameterGet; ?>">
      <?php echo $page; ?>
      </a></li>
      <?php else: ?>
       <li class="active"><a href="#">
      <?php echo $page; ?>
       </a>
       </li>
      <?php endif; ?>
      <?php endforeach; ?>
      <?php if (isset($this->next)): ?>
      <li><a href="<?php echo $url.'/'.$this->next.$parameterGet; ?>"><?php echo $this->translate('下一页'); ?></a></li>
      <li><a href="<?php echo $url.'/'.$this->pageCount.$parameterGet; ?>">&nbsp; &gt;&gt;</a></li>
      <?php else: ?>      	
	   <li class="disabled"><a href="#"><?php echo $this->translate('下一页'); ?></a></li>
	   <li class="disabled"><a href="#">&nbsp; &gt;&gt;&nbsp;</a></li>
      <?php endif; ?>
</ul>
</div>
<?php endif; ?>
